|
Circuit breaker is a design pattern in modern software development. Circuit breaker is used to detect failures and encapsulates logic of preventing a failure to reoccur constantly (during maintenance, temporary external system failure or unexpected system difficulties). ==Common Uses== Assume that your application connects to a database 100 times per second and the database fails. You do not want to have the same error reoccur constantly. You also want to handle the error quickly and gracefully without waiting for TCP connection timeout. Generally Circuit Breaker can be used to check the availability of an external service. An external service can be a database server or a web service used by the application. Circuit breaker detects failures and prevents the application from trying to perform the action that is doomed to fail (until its safe to retry). 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Circuit breaker design pattern」の詳細全文を読む スポンサード リンク
|